from graphics import*
win=GraphWin("win",500,500)
x=int(input("Введите начальную кординату x"))
y=int(input("Введите начальную кординату y"))
m=int(input("Введите маштаб"))
if(m>=0 and x>=0 and y>=0 and 20*m+x<=500 and 30*m+y<=500) or (m<0 and 20*m+x>=0 and 30*m+y>=0 and x<=500 and y<=500):
    obj=Polygon(Point(x,y),Point(x+10*m,y),Point(x+10*m,y+10*m),Point(x+20*m,y+10*m),Point(x+20*m,y+20*m),Point(x+10*m,y+20*m),Point(x+10*m,y+30*m),Point(x,y+30*m),Point(x,y))
    obj.draw(win)
    obj.setFill("black")
else:
    print("координаты фигуры выходят за рамки поля")
    win.close()
